package com.tc.gateway.device;

import java.util.LinkedList;
import java.util.List;

import com.tc.gateway.device.GeneralDevice;


public class Group {
	short id;
	String name;
	List<GeneralDevice> members = new LinkedList<GeneralDevice>();
	public short getId() {
		return id;
	}
	public void setId(short id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public List<GeneralDevice> getMembers() {
		return members;
	}
	public void setMembers(List<GeneralDevice> members) {
		this.members = members;
	}
	@Override
	public String toString() {
		
		return (name == null? "": name) + "[" + id + "]";
	}
	
}
